﻿using System.Collections.ObjectModel;
using CommunityToolkit.Mvvm.ComponentModel;

namespace RobotPratolSolution.Models
{
    public class OverlaysLineInfo : ObservableObject
    {
        public string Id { get; set; }
        public ObservableCollection<Double[]> Coordinates = new ObservableCollection<Double[]>();

        public event Action<string> SelectedChanged;
        string _Name;
        public string Name
        {
            get { return _Name; }
            set
            {
                _Name = value; OnPropertyChanged();
            }

        }
        bool _IsChecked;
        public bool IsChecked
        {
            get { return _IsChecked; }
            set
            {
                _IsChecked = value; OnPropertyChanged();

                OnPropertyChanged("Coordinates");
            }
        }
    }
}
